AEDeleteItem
AEDeleteItem Delete a descriptor record from a descriptor list
#include <AppleEvents.h> Apple Event Manager
OSErr AEDeleteItem( theAEDescList, index );
AEDescList * theAEDescList ; descriptor list containing descriptor record
to be deleted
long index ; position of record in the list
returns Error Code; 0 = no error
The AEDeleteItem function deletes a descriptor record from a
descriptor list.
The parameter theAEDescList is the descriptor list containing the descriptor
record to be deleted.
The index parameter is the position of the descriptor record to delete (for
example, 2 specifies the second item).
Result codes
noErr (0) No error
errAEDescNotFound (-1701) Descriptor record was not found
errAENotAEDesc (-1704) Not a valid descriptor record
errAEBadListItem (-1705) Operation involving a list item failed